import Resolve from '../utils/resolve.js'
import RoomService from '../services/RoomService.js'

const res = new Resolve()

class RoomController
{
    async roomCreate(ctx) {
        const params = ctx.request.body
        const roomId = await RoomService.roomCreate(params)
        ctx.body = res.json({ roomId })
    }
}

export default RoomController
